import service from "@/utils/http"

/**  
 * 
 * @description 获取分类列表
 * @name 
 * 
 */
export const getMenuList = () => {
    return service({
        url:"/cate/list",
        method:"get"
    })
}

/* 获取当前分类下面的文章列表 */
export const getArticleList = (cateId:number,page:number,pageSize:number=10) => {
    return service({
        url:"/article/list",
        method:"get",
        params:{cateId,page,pageSize}
    })
}